import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
    {
        name: "manage",
        path: '/',
        component: () => import('../views/LayoutView.vue'),
        children: [
            {
                name: "home",
                path: '/home',
                component: () => import('../views/home/HomeIndex.vue')
            },
            {
                name: "menu",
                path: '/menu',
                component: () => import('../views/menu/MenuIndex.vue')
            },
            {
                name: "role",
                path: '/role',
                component: () => import('../views/role/RoleIndex.vue')
            },
            {
                name: "account",
                path: '/account',
                component: () => import('../views/account/AccountIndex.vue')
            },

            {
                name: "classify",
                path: '/classify',
                component: () => import('../views/classify/ClassifyIndex.vue')
            },
            {
                name: "posts",
                path: '/posts',
                component: () => import('../views/posts/PostsIndex.vue')
            },
            {
                name: "member",
                path: '/member',
                component: () => import('../views/member/MemberIndex.vue')
            },
            {
                name: "business",
                path: '/business',
                component: () => import('../views/business/BusinessIndex.vue')
            },
            {
                name: "orders",
                path: '/orders',
                component: () => import('../views/orders/OrdersIndex.vue')
            },
            {
                name: "appointment",
                path: '/appointment',
                component: () => import('../views/appointment/AppointmentIndex.vue')
            },
            {
                name: "banner",
                path: '/banner',
                component: () => import('../views/banner/BannerIndex.vue')
            }
        ]
    },
    {
        name: "login",
        path: '/login',
        component: () => import('../views/LoginView.vue')
    }
]
const router = createRouter({
    routes,
    history: createWebHashHistory()
})
export default router
